/**
 * 矩阵的三元组表存储方式之结点结构
 * 
 * @author wt
 *
 * @param <T>
 */
public class Node<T> {
	int row, col;	// 该非零元素的行下标和列下标
	T value;		// 该非零元素的值

	public Node() {
	}

	public Node(int row, int col, T value) {
		this.row = row;
		this.col = col;
		this.value = value;
	}

	@Override
	public String toString() {
		int r = row + 1;
		int c = col + 1;
		return "[" + r + "," + c + "," + value + "]";
	}
}